﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UDPHelper
{
    /// <summary>
    /// UDP管道
    /// （将上下文类型修改为UDPContext类型）
    /// </summary>
    public abstract class UDPPipeline : Pipeline
    {
        public override bool Handle(object context)
        {
            if (!(context is UDPPackage))
                return false;

            return Handle(context as UDPPackage);
        }

        public abstract bool Handle(UDPPackage context);
    }
}
